package cn.virens.web.components.activiti.listener;

import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.ExecutionListener;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@Component("ActivitiListener")
public class ActivitiListener implements ExecutionListener {
	private static final long serialVersionUID = -3684735963279200078L;
	private final Logger logger = LoggerFactory.getLogger(ActivitiListener.class);

	@Override
	public void notify(DelegateExecution execution) {
		logger.debug(execution.getProcessDefinitionId());
	}
}
